﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace BioModel
{
    [DataContract]
    public class Saede
    {
        #region Attributter
        [DataMember]
        private int saedeId;

        [DataMember]
        private int saedeNr;

        [DataMember]
        private string saedeStatus;

        [DataMember]
        private int raekkeNr;

        [DataMember]
        private int forestillingsId;
        #endregion

        #region Konstruktør
        public Saede()
        {
        }

        public Saede(int saedeId, int saedeNr, int raekkeNr, int forestillingsId)
        {
            this.saedeId = saedeId;
            this.saedeNr = saedeNr;
            this.saedeStatus = "l";
            this.raekkeNr = raekkeNr;
            this.forestillingsId = forestillingsId;
        }

        public Saede(int saedeId, int saedeNr, int raekkeNr, string saedeStatus, int forestillingsId)
        {
            this.saedeId = saedeId;
            this.saedeNr = saedeNr;
            this.saedeStatus = saedeStatus;
            this.raekkeNr = raekkeNr;
            this.forestillingsId = forestillingsId;
        }
        #endregion

        #region Get og Set
        [DataMember]
        public int SaedeId
        {
            get { return saedeId; }
            set { saedeId = value; }
        }

        [DataMember]
        public int SaedeNr
        {
            get { return saedeNr; }
            set { saedeNr = value; }
        }

        [DataMember]
        public string SaedeStatus
        {
            get { return saedeStatus; }
            set { saedeStatus = value; }
        }

        [DataMember]
        public int RaekkeNr
        {
            get { return raekkeNr; }
            set { raekkeNr = value; }
        }

        [DataMember]
        public int ForestillingsId
        {
            get { return forestillingsId; }
            set { forestillingsId = value; }
        }
        #endregion
    }
}
